using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication11.Models.Mapping
{
    public class lab_checkMap : EntityTypeConfiguration<lab_check>
    {
        public lab_checkMap()
        {
            // Primary Key
            this.HasKey(t => t.lab_check_id);

            // Properties
            this.Property(t => t.patient_id)
                .HasMaxLength(20);

            this.Property(t => t.create_by)
                .HasMaxLength(20);

            this.Property(t => t.update_by)
                .HasMaxLength(20);

            this.Property(t => t.lab_check_TP)
                .HasMaxLength(20);

            this.Property(t => t.lab_check_ALB)
                .HasMaxLength(20);

            this.Property(t => t.lab_check_ALT)
                .HasMaxLength(20);

            this.Property(t => t.lab_check_AST)
                .HasMaxLength(20);

            this.Property(t => t.lab_check_ALP)
                .HasMaxLength(20);

            this.Property(t => t.lab_check_GGT)
                .HasMaxLength(20);

            this.Property(t => t.lab_check_Tbil)
                .HasMaxLength(20);

            this.Property(t => t.lab_check_DBil)
                .HasMaxLength(20);

            this.Property(t => t.lab_check_K)
                .HasMaxLength(20);

            this.Property(t => t.lab_check_NA)
                .HasMaxLength(20);

            this.Property(t => t.lab_check_CL)
                .HasMaxLength(20);

            this.Property(t => t.lab_check_CO2)
                .HasMaxLength(20);

            this.Property(t => t.lab_check_CA)
                .HasMaxLength(20);

            this.Property(t => t.lab_check_P)
                .HasMaxLength(20);

            this.Property(t => t.lab_check_GLU)
                .HasMaxLength(20);

            this.Property(t => t.lab_check_CREA)
                .HasMaxLength(20);

            this.Property(t => t.lab_check_BUN)
                .HasMaxLength(20);

            this.Property(t => t.lab_check_URIC)
                .HasMaxLength(20);

            this.Property(t => t.lab_check_CK)
                .HasMaxLength(20);

            this.Property(t => t.lab_check_CK_MB)
                .HasMaxLength(20);

            this.Property(t => t.lab_check_LDH)
                .HasMaxLength(20);

            this.Property(t => t.lab_check_AMY)
                .HasMaxLength(20);

            this.Property(t => t.lab_check_LP_a)
                .HasMaxLength(20);

            this.Property(t => t.lab_check_HSCRP)
                .HasMaxLength(20);

            this.Property(t => t.lab_check_apoA1)
                .HasMaxLength(20);

            this.Property(t => t.lab_check_apoB)
                .HasMaxLength(20);

            this.Property(t => t.lab_check_FFA)
                .HasMaxLength(20);

            this.Property(t => t.lab_check_TG)
                .HasMaxLength(20);

            this.Property(t => t.lab_check_CHOL)
                .HasMaxLength(20);

            this.Property(t => t.lab_check_HDL_C)
                .HasMaxLength(20);

            this.Property(t => t.lab_check_LDL_C)
                .HasMaxLength(20);

            this.Property(t => t.lab_check_Troponin)
                .HasMaxLength(20);

            this.Property(t => t.lab_check_Microalbuminuria)
                .HasMaxLength(20);

            this.Property(t => t.lab_check_Albumin_CREA)
                .HasMaxLength(20);

            this.Property(t => t.lab_check_Blood_homocysteine)
                .HasMaxLength(20);

            this.Property(t => t.lab_check_Glomerular_filtration_rate)
                .HasMaxLength(20);

            this.Property(t => t.lab_glucose_fasting)
                .HasMaxLength(20);

            this.Property(t => t.lab_glucose_postprandial)
                .HasMaxLength(20);

            this.Property(t => t.lab_glycosylated_hemoglobin)
                .HasMaxLength(20);

            this.Property(t => t.lab_hemoglobin_determination)
                .HasMaxLength(20);

            this.Property(t => t.lab_erythrocyte_count)
                .HasMaxLength(20);

            this.Property(t => t.lab_leukocyte_count)
                .HasMaxLength(20);

            this.Property(t => t.lab_absolute_neutrophil)
                .HasMaxLength(20);

            this.Property(t => t.lab_absolute_lymphocytes)
                .HasMaxLength(20);

            this.Property(t => t.lab_absolute_monocytes)
                .HasMaxLength(20);

            this.Property(t => t.lab_absolute_eosinophils)
                .HasMaxLength(20);

            this.Property(t => t.lab_absolute_basophils)
                .HasMaxLength(20);

            this.Property(t => t.lab_mean_corpuscular_volume)
                .HasMaxLength(20);

            this.Property(t => t.lab_average_hemoglobin_content)
                .HasMaxLength(20);

            this.Property(t => t.lab_average_hemoglobin_concentration)
                .HasMaxLength(20);

            this.Property(t => t.lab_corpuscular_volume_density)
                .HasMaxLength(20);

            this.Property(t => t.lab_blood_platelet_count)
                .HasMaxLength(20);

            this.Property(t => t.lab_mean_platelet_volume)
                .HasMaxLength(20);

            this.Property(t => t.lab_platelet_volume_density)
                .HasMaxLength(20);

            this.Property(t => t.lab_WBC_count)
                .HasMaxLength(20);

            this.Property(t => t.lab_percentage_lymphocytes)
                .HasMaxLength(20);

            this.Property(t => t.lab_percentage_monocytes)
                .HasMaxLength(20);

            this.Property(t => t.lab_percentage_eosinophils)
                .HasMaxLength(20);

            this.Property(t => t.lab_percentage_basophils)
                .HasMaxLength(20);

            this.Property(t => t.lab_percentage_neutrophil)
                .HasMaxLength(20);

            this.Property(t => t.lab_erythrocyte_yaji)
                .HasMaxLength(20);

            this.Property(t => t.lab_percentage_large_unstained_cells)
                .HasMaxLength(20);

            this.Property(t => t.lab_absolute_large_unstained_cells)
                .HasMaxLength(20);

            // Table & Column Mappings
            this.ToTable("lab_check");
            this.Property(t => t.lab_check_id).HasColumnName("lab_check_id");
            this.Property(t => t.patient_id).HasColumnName("patient_id");
            this.Property(t => t.follow_up_id).HasColumnName("follow_up_id");
            this.Property(t => t.create_time).HasColumnName("create_time");
            this.Property(t => t.create_by).HasColumnName("create_by");
            this.Property(t => t.update_time).HasColumnName("update_time");
            this.Property(t => t.update_by).HasColumnName("update_by");
            this.Property(t => t.lab_check_TP).HasColumnName("lab_check_TP");
            this.Property(t => t.lab_check_ALB).HasColumnName("lab_check_ALB");
            this.Property(t => t.lab_check_ALT).HasColumnName("lab_check_ALT");
            this.Property(t => t.lab_check_AST).HasColumnName("lab_check_AST");
            this.Property(t => t.lab_check_ALP).HasColumnName("lab_check_ALP");
            this.Property(t => t.lab_check_GGT).HasColumnName("lab_check_GGT");
            this.Property(t => t.lab_check_Tbil).HasColumnName("lab_check_Tbil");
            this.Property(t => t.lab_check_DBil).HasColumnName("lab_check_DBil");
            this.Property(t => t.lab_check_K).HasColumnName("lab_check_K");
            this.Property(t => t.lab_check_NA).HasColumnName("lab_check_NA");
            this.Property(t => t.lab_check_CL).HasColumnName("lab_check_CL");
            this.Property(t => t.lab_check_CO2).HasColumnName("lab_check_CO2");
            this.Property(t => t.lab_check_CA).HasColumnName("lab_check_CA");
            this.Property(t => t.lab_check_P).HasColumnName("lab_check_P");
            this.Property(t => t.lab_check_GLU).HasColumnName("lab_check_GLU");
            this.Property(t => t.lab_check_CREA).HasColumnName("lab_check_CREA");
            this.Property(t => t.lab_check_BUN).HasColumnName("lab_check_BUN");
            this.Property(t => t.lab_check_URIC).HasColumnName("lab_check_URIC");
            this.Property(t => t.lab_check_CK).HasColumnName("lab_check_CK");
            this.Property(t => t.lab_check_CK_MB).HasColumnName("lab_check_CK_MB");
            this.Property(t => t.lab_check_LDH).HasColumnName("lab_check_LDH");
            this.Property(t => t.lab_check_AMY).HasColumnName("lab_check_AMY");
            this.Property(t => t.lab_check_LP_a).HasColumnName("lab_check_LP_a");
            this.Property(t => t.lab_check_HSCRP).HasColumnName("lab_check_HSCRP");
            this.Property(t => t.lab_check_apoA1).HasColumnName("lab_check_apoA1");
            this.Property(t => t.lab_check_apoB).HasColumnName("lab_check_apoB");
            this.Property(t => t.lab_check_FFA).HasColumnName("lab_check_FFA");
            this.Property(t => t.lab_check_TG).HasColumnName("lab_check_TG");
            this.Property(t => t.lab_check_CHOL).HasColumnName("lab_check_CHOL");
            this.Property(t => t.lab_check_HDL_C).HasColumnName("lab_check_HDL_C");
            this.Property(t => t.lab_check_LDL_C).HasColumnName("lab_check_LDL_C");
            this.Property(t => t.lab_check_Troponin).HasColumnName("lab_check_Troponin");
            this.Property(t => t.lab_check_Microalbuminuria).HasColumnName("lab_check_Microalbuminuria");
            this.Property(t => t.lab_check_Albumin_CREA).HasColumnName("lab_check_Albumin_CREA");
            this.Property(t => t.lab_check_Blood_homocysteine).HasColumnName("lab_check_Blood_homocysteine");
            this.Property(t => t.lab_check_Glomerular_filtration_rate).HasColumnName("lab_check_Glomerular_filtration_rate");
            this.Property(t => t.lab_glucose_fasting).HasColumnName("lab_glucose_fasting");
            this.Property(t => t.lab_glucose_postprandial).HasColumnName("lab_glucose_postprandial");
            this.Property(t => t.lab_glycosylated_hemoglobin).HasColumnName("lab_glycosylated_hemoglobin");
            this.Property(t => t.lab_hemoglobin_determination).HasColumnName("lab_hemoglobin_determination");
            this.Property(t => t.lab_erythrocyte_count).HasColumnName("lab_erythrocyte_count");
            this.Property(t => t.lab_leukocyte_count).HasColumnName("lab_leukocyte_count");
            this.Property(t => t.lab_absolute_neutrophil).HasColumnName("lab_absolute_neutrophil");
            this.Property(t => t.lab_absolute_lymphocytes).HasColumnName("lab_absolute_lymphocytes");
            this.Property(t => t.lab_absolute_monocytes).HasColumnName("lab_absolute_monocytes");
            this.Property(t => t.lab_absolute_eosinophils).HasColumnName("lab_absolute_eosinophils");
            this.Property(t => t.lab_absolute_basophils).HasColumnName("lab_absolute_basophils");
            this.Property(t => t.lab_mean_corpuscular_volume).HasColumnName("lab_mean_corpuscular_volume");
            this.Property(t => t.lab_average_hemoglobin_content).HasColumnName("lab_average_hemoglobin_content");
            this.Property(t => t.lab_average_hemoglobin_concentration).HasColumnName("lab_average_hemoglobin_concentration");
            this.Property(t => t.lab_corpuscular_volume_density).HasColumnName("lab_corpuscular_volume_density");
            this.Property(t => t.lab_blood_platelet_count).HasColumnName("lab_blood_platelet_count");
            this.Property(t => t.lab_mean_platelet_volume).HasColumnName("lab_mean_platelet_volume");
            this.Property(t => t.lab_platelet_volume_density).HasColumnName("lab_platelet_volume_density");
            this.Property(t => t.lab_WBC_count).HasColumnName("lab_WBC_count");
            this.Property(t => t.lab_percentage_lymphocytes).HasColumnName("lab_percentage_lymphocytes");
            this.Property(t => t.lab_percentage_monocytes).HasColumnName("lab_percentage_monocytes");
            this.Property(t => t.lab_percentage_eosinophils).HasColumnName("lab_percentage_eosinophils");
            this.Property(t => t.lab_percentage_basophils).HasColumnName("lab_percentage_basophils");
            this.Property(t => t.lab_percentage_neutrophil).HasColumnName("lab_percentage_neutrophil");
            this.Property(t => t.lab_erythrocyte_yaji).HasColumnName("lab_erythrocyte_yaji");
            this.Property(t => t.lab_percentage_large_unstained_cells).HasColumnName("lab_percentage_large_unstained_cells");
            this.Property(t => t.lab_absolute_large_unstained_cells).HasColumnName("lab_absolute_large_unstained_cells");
        }
    }
}
